package com.ruoyi.xsp.domain;

import java.math.BigDecimal;
import java.util.Date;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.AreaBaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 视频管理对象 xsp_news_info
 * 
 * @author zhiminhu
 * @date 2021-01-22
 */
public class XspNewsInfo  extends AreaBaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 新闻记录ID-自增 */
    private Long newsId;

    /** 封面图片 */
    @Excel(name = "封面图片")
    private String pictureAddr;

    /** 视频或图片地址 */
    @Excel(name = "视频或图片地址")
    private String videoAddr;

    /** 内容标题 */
    @Excel(name = "内容标题")
    private String title;

    /** 用户码 */
    @Excel(name = "用户码")
    private Long userCode;

    /** 头像地址 */
    @Excel(name = "头像地址")
    private String avatar;

    /** 用户昵称 */
    @Excel(name = "用户昵称")
    private String nickname;

    /** 点赞数量 */
    private Long likeCount;

    /** 浏览数量 */
    private Long readCount;

    /** 评论数量 */
    private Long commentCount;

    /** 分享次数 */
    private Long shareCount;

    /** 是否显示 */
    @JSONField(serialize = false)
    private Integer isShow;

    /** 删除标志 */
    @JSONField(serialize = false)
    private Integer delFlag;

    /** 视频分组 */
    @Excel(name = "视频分组")
    private Integer newsTypeId;

    /** 视频分类 */
    @Excel(name = "视频分类")
    private Integer type;

    /** 视频标签 */
    @Excel(name = "视频标签")
    private String tag;

    /** LBS */
    @Excel(name = "LBS")
    private String lbs;

    /** 是否点赞 */
    private boolean ILikeIt;
    /** 是否关注作者 */
    private boolean IConcernedIt;
    /**
     * 当前登陆用户ID 默认为null
     * 当前登陆的情况下根据此字段获取改数据 是否被当前用户关注与点赞与收藏
     */
    private Long loginUserCode;
    public void setNewsId(Long newsId) 
    {
        this.newsId = newsId;
    }

    public Long getNewsId() 
    {
        return newsId;
    }
    public void setPictureAddr(String pictureAddr) 
    {
        this.pictureAddr = pictureAddr;
    }

    public String getPictureAddr() 
    {
        return pictureAddr;
    }
    public void setVideoAddr(String videoAddr) 
    {
        this.videoAddr = videoAddr;
    }

    public String getVideoAddr() 
    {
        return videoAddr;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setUserCode(Long userCode)
    {
        this.userCode = userCode;
    }

    public Long getUserCode()
    {
        return userCode;
    }
    public void setAvatar(String avatar) 
    {
        this.avatar = avatar;
    }

    public String getAvatar() 
    {
        return avatar;
    }
    public void setNickname(String nickname) 
    {
        this.nickname = nickname;
    }

    public String getNickname() 
    {
        return nickname;
    }
    public void setLikeCount(Long likeCount) 
    {
        this.likeCount = likeCount;
    }

    public Long getLikeCount() 
    {
        return likeCount;
    }
    public void setReadCount(Long readCount) 
    {
        this.readCount = readCount;
    }

    public Long getReadCount() 
    {
        return readCount;
    }
    public void setCommentCount(Long commentCount) 
    {
        this.commentCount = commentCount;
    }

    public Long getCommentCount() 
    {
        return commentCount;
    }
    public void setShareCount(Long shareCount) 
    {
        this.shareCount = shareCount;
    }

    public Long getShareCount() 
    {
        return shareCount;
    }
    public void setIsShow(Integer isShow) 
    {
        this.isShow = isShow;
    }

    public Integer getIsShow() 
    {
        return isShow;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }
    public void setNewsTypeId(Integer newsTypeId) 
    {
        this.newsTypeId = newsTypeId;
    }

    public Integer getNewsTypeId() 
    {
        return newsTypeId;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setTag(String tag) 
    {
        this.tag = tag;
    }

    public String getTag() 
    {
        return tag;
    }

    public String getLbs() {
        return lbs;
    }

    public void setLbs(String lbs) {
        this.lbs = lbs;
    }

    public boolean isILikeIt() {
        return ILikeIt;
    }

    public void setILikeIt(boolean ILikeIt) {
        this.ILikeIt = ILikeIt;
    }

    public boolean isIConcernedIt() {
        return IConcernedIt;
    }

    public void setIConcernedIt(boolean IConcernedIt) {
        this.IConcernedIt = IConcernedIt;
    }

    public Long getLoginUserCode() {
        return loginUserCode;
    }

    public void setLoginUserCode(Long loginUserCode) {
        this.loginUserCode = loginUserCode;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("newsId", getNewsId())
                .append("pictureAddr", getPictureAddr())
                .append("videoAddr", getVideoAddr())
                .append("title", getTitle())
                .append("userCode", getUserCode())
                .append("avatar", getAvatar())
                .append("nickname", getNickname())
                .append("likeCount", getLikeCount())
                .append("readCount", getReadCount())
                .append("commentCount", getCommentCount())
                .append("shareCount", getShareCount())
                .append("isShow", getIsShow())
                .append("delFlag", getDelFlag())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("newsTypeId", getNewsTypeId())
                .append("type", getType())
                .append("tag", getTag())
                .append("lbs", getLbs())
                .append("addrStr", getAddrStr())
                .append("province", getProvince())
                .append("city", getCity())
                .append("country", getCountry())
                .append("district", getDistrict())
                .append("town", getTown())
                .append("street", getStreet())
                .append("latitude", getLatitude())
                .append("longitude", getLongitude())
                .toString();
    }
}
